<?php
class GoodsImageViewWidget extends YWidget{
	/**
	 * 商品
	 * @var GoodsModel
	 */
	public $goods = null;
	
	/**
	 * 展示类型
	 * @var string
	 */
	public $type = 'left_main';
	
	private $main_picture = null;
	public function run(){
		$this->load_resource($this->type);
		$this->render($this->class_name . '/' . $this->type, array(
			'goods'			=> $this->goods,
		));
	}
}

?>